public class jun extends yuan
    implements Comparable<jun> {
    public jun(double width, double height) { super(width,height);}

    @Override
    public int compareTo(jun O) {
        if (getArea() > O.getArea())
            return  1;
        else if (getArea() < O.getArea())
            return  -1;
        else
            return  0;
    }

    @Override
    public String toString() {
        return "width: " + getWidth() + "height: " + getHeigth() + "Area: " + getArea();
    }
}